$theme: #017BC8;
$white: #FFFFFF;
$padding: 15px;

.header {
  width: 100%;
  height: 64px;
  background: $theme;
  line-height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 $padding;

  .logo {
    width: auto;
    height: 30px;
    line-height: 30px;

    img {
      width: auto;
      height: 30px;
      margin-right: 5px;
    }

    span {
      font-size: 20px;
      font-weight: 500;
      color: $white;
      line-height: 28px;
      text-shadow: 0px 2px 0px rgba(226, 226, 226, 0.18);
    }
  }

  .message {
    flex: 1;
    text-align: right;
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: $white;
    font-size: 14px;

    .time {
      padding: 0 $padding;
      text-shadow: 0px 2px 0px rgba(226, 226, 226, 0.18);
    }

    .tools {
      padding: 0 $padding;
      line-height: 30px;

      a {
        display: inline-block;
        width: 30px;
        height: 30px;
        text-align: center;
        color: $white;

        &:first-child {
          background: #EFF3FD;
          box-shadow: 0px 2px 0px 0px rgba(226, 226, 226, 0.18);
          border-radius: 4px;
          color: $theme;
        }
      }
    }

    dl {
      text-align: center;
      padding: 0 $padding;

      dt {
        line-height: 30px;
        vertical-align: middle;

        span {
          display: inline-block;
          width: 26px;
          height: 26px;
          line-height: 26px;
          background: $white;
          color: $theme;
          border-radius: 100%;
          margin-right: 5px;
        }

        em {
          text-shadow: 0px 2px 0px rgba(226, 226, 226, 0.18);
        }
      }
    }
  }
}

.container {
  display: flex;
  min-height: calc(100vh - 64px);
  height: calc(100% - 64px);

  .aside {
    width: 210px;
    background: $white;
    box-shadow: 0px 2px 4px 0px rgba(230, 218, 218, 0.15);
    padding: 30px 6px;

    .menu {
      font-size: 14px;
      color: #727E98;

      .menu-sub {
        line-height: 40px;

        li {
          width: 100%;

          &.active, &:hover {

            & > a {
              color: $white;
              background: $theme;
              border-color: #005892;
            }
          }

          a {
            display: block;
            padding: 0 30px;
            width: 100%;
            height: 100%;
            border-left: 3px solid transparent;
            color: #727E98;

            i {
              margin-right: 5px;
            }
          }

          ul {
            margin-top: 1px;

            li {
              a {
                padding: 0 30px 0 60px;
              }
            }
          }
        }
      }
    }
  }

  .main {
    flex: 1;
    background: transparent;
    display: flex;
    flex-flow: column;

    .main-title {
      width: 100%;
      height: 54px;
      background-color: #fff;
      line-height: 54px;
      display: flex;
      justify-content: flex-start;
      align-items: center;

      .stretch {
        width: 30px;
        text-align: center;
        margin-right: 5px;
      }

      .main-tabs {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;

        .main-tab {
          height: 30px;
          line-height: 30px;
          padding: 0 30px;
          border-radius: 15px;
          background: #DAE4FB;
          color: #79859C;
          font-size: 12px;

          & + .main-tab {
            margin-left: 10px;
          }

          &.active {
            color: #FFFFFF;
            background: $theme;
          }

          a {
            color: inherit;
          }

          i {
            font-size: inherit;
          }
        }
      }
    }

    .main-content {
      flex: 1;
      padding: $padding;
      overflow: hidden;
      display: flex;
    }
  }
}

.content-left {
  flex: 1.5;
}

.content-right {
  flex: 1;
  margin-left: $padding;
}

.long {
  width: 100%;
}

.card {
  width: 100%;
  height: 100%;
  background: $white;
  padding: $padding;
  display: flex;
  flex-flow: column;

  &.sub-card {
    height: auto;
  }

  & + .card {
    margin-top: $padding;
  }

  .card-title {
    width: 100%;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: $padding;

    .card-title__name {
      color: #04072F;
      flex: 1;
    }

    .card-title__tools {
      .tools-item {
        display: inline-block;
        min-width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        border-radius: 4px;
        background: #F8F9FC;
        color: #666;
        padding: 0 5px;
        font-size: 14px;

        em {
          font-size: inherit;
          color: #79859C;
        }

        span {
          font-size: inherit;
        }
      }
    }
  }

  .card-content {
    flex: 1;
  }
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  height: auto;

  th {
    background: #F8F9FC;
    font-size: 14px;
    padding: 0 $padding;
    line-height: 42px;
    color: #04072F;
    border-bottom: 2px solid #EBEEF5;

    & + th {
      border-left: 2px solid $white;
    }
  }

  td {
    background: $white;
    font-size: 12px;
    color: #79859C;
    border-bottom: 1px solid #EBEEF5;
    line-height: 40px;
    padding: 0 $padding;
  }
}

.page {
  width: 100%;
  height: 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: $padding;

  .page-list {
    a {
      display: inline-block;
      width: 32px;
      height: 32px;
      border: 1px solid #EBEEF5;
      text-align: center;
      line-height: 30px;
      font-size: 12px;
      color: #666;

      &.disabled {
        color: rgba(0, 0, 0, .25);
      }

      span {
        font-size: inherit;
        color: inherit;
      }
    }

    em {
      color: #999;
    }
  }

  .page-msg {
    margin-left: $padding;
    color: #666666;
    font-size: 14px;

    span {
      color: inherit;
      font-size: inherit;
    }

    input {
      width: 56px;
      height: 32px;
      border: 1px solid #EBEEF5;
      border-radius: 4px;
      padding: 0 5px;
    }
  }
}

.common-used {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;

  .used-item {
    width: 20%;
    text-align: center;
    padding: 10px 0;

    a {
      color: #04072F;

      img {
        width: 60px;
        height: 60px;
        margin-bottom: 5px;
      }
    }
  }
}

.unread {
  .unread-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #EBEEF5;
    padding: $padding 0;

    .unread-content {
      flex: 1;

      h2 {
        font-size: 14px;
        color: #04072F;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin-bottom: $padding;
      }

      p {
        font-size: 12px;
        color: #79859C;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    .unread-time {
      font-size: 12px;
      color: #79859C;
    }
  }
}

.card-tools {
  width: 100%;
  height: auto;
  padding-bottom: $padding;
  display: flex;
  justify-content: flex-start;
  align-items: center;

  .tools-left {
    flex: 1;
  }
}

.btn {
  background: $theme;
  color: $white;
  padding: 0 $padding;
  font-size: 14px;
  border: 1px solid $theme;
  display: inline-block;
  line-height: 30px;
  border-radius: 4px;

  &.btn-text {
    background: transparent;
    color: $theme;
    border-color: transparent;
    padding: 0 10px;
  }

  &.btn-plain {
    background: transparent;
    color: #424E7E;
    border-color: #D4DFE5;
  }
}

.select {
  display: inline-block;
  min-width: 200px;

  select {
    width: 100%;
    height: 32px;
    line-height: 30px;
    font-size: 14px;
    padding: 0 10px;
    color: #C7CAD9;
    appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    border: 1px solid #D4DFE5;
    overflow: hidden;
  }
}

.tools-search {
  display: inline-block;
  min-width: 220px;
  position: relative;

  &:before {
    content: '\e654';
    font-family: iconfont;
    color: #ACAFB5;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
  }

  input {
    width: 100%;
    height: 32px;
    border: 1px solid #D4DFE5;
    padding: 0 5px 0 24px;
    border-radius: 4px;
  }
}

.checkbox {
  display: inline-block;
  width: 15px;
  height: 15px;
  line-height: 15px;
  vertical-align: middle;
  position: relative;
  cursor: pointer;

  input {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: relative;
    z-index: 5;
    cursor: pointer;
    margin: 0;
    padding: 0;

    &:checked + i {
      &:after {
        content: '\e6ca';
        color: #017BC8;
      }
    }
  }

  i {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;

    &:after {
      content: '\e6c9';
      font-family: iconfont;
      font-size: 15px;
    }
  }
}

.btn + .select,
.btn + .btn,
.select + .btn,
.tools-search + .btn,
.btn + .tools-search,
.checkbox + .btn,
.btn + .checkbox,
.checkbox + .checkbox {
  margin-left: 10px;
}

.card-tabs {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;

  span {
    width: 170px;
    height: 30px;
    font-size: 12px;
    color: #79859C;
    padding: 0 $padding;
    cursor: pointer;

    &.active {
      color: #04072F;
      font-size: 14px;
      position: relative;

      &:after {
        content: '';
        display: block;
        width: 30px;
        height: 3px;
        background: #141683;
        box-shadow: 0px 6px 13px 0px rgba(21, 33, 56, 0.53);
        border-radius: 3px;
        position: absolute;
        left: 20px;
        bottom: 0;
      }
    }
  }
}

.flex {
  display: flex;
}

.flex-column {
  display: flex;
  flex-flow: column;
}

.flex-1 {
  flex: 1;
}

.card-left {
  width: 300px;
  border: 1px solid #D4DFE5;
  border-radius: 2px;
  margin-right: $padding;
  display: flex;
  flex-flow: column;
}

.tree {
  flex: 1;
  padding: $padding;
}

.tools-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  .btn {
    height: 30px;
    background: transparent;
    margin-left: 0 !important;
    width: 33.3333333%;
    border-radius: 0;
    border-color: #D4DFE5;
    color: #424E7E;
    font-size: 12px;

    &.active {
      background: #1C7FBE;
      border-color: #1C7FBE;
      color: $white;
    }
  }
}

.aside-tools {
  .tools-search {
    width: 100%;

    input {
      border-radius: 0;
    }
  }
}

.card-right {
  flex: 1;
}

.dialog {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, .6);

  .dialog-content {
    position: relative;
    left: 50%;
    top: 20vh;
    transform: translateX(-50%);
    background: #FFFFFF;
  }

  .close {
    cursor: pointer;
  }

  .dialog-footer {
    padding: $padding;

    .dialog-footer__tools {
      text-align: right;
      padding-top: $padding;
      border-top: 1px solid #EBEEF5;
    }
  }
}

.form {
  display: flex;
  flex-wrap: wrap;

  .form-item {
    width: 50%;
    padding: $padding;

    .item-name {
      font-size: 14px;
      color: #04072F;
      margin-bottom: 10px;
    }

    .item-content {
      display: flex;
      justify-content: flex-start;
      align-items: center;

      span {
        margin-right: 5px;
        font-size: 14px;
        color: #04072F;
      }

      input[type=text] {
        width: 100%;
        height: 30px;
        border: 1px solid #EBEEF5;
        border-radius: 4px;
        padding: 0 5px;
      }
    }
  }
}

.col-80 {
  width: 80%;
}

.col-70 {
  width: 70%;
}

.col-50 {
  width: 50%;
}

.col-60 {
  width: 60%;
}

.col-20 {
  width: 20%;
}

.color-success {
  color: #0DBE62;
}

.color-error {
  color: #FF0303;
}

.color-warning {
  color: #FF8400;
}

.login {
  width: 100%;
  height: 100vh;
  background: url('../img/login.png') center top no-repeat;
  background-size: cover;
  position: relative;
  color: #FFFFFF;

  .login-form {
    position: absolute;
    left: 50%;
    top: 50%;
    border: $padding solid rgba(255, 255, 255, .3);
    transform: translate(10%, -50%);

    .form-box {
      background: rgba(17, 47, 98, 0.93);
      padding: 100px 60px;

      .login-logo {
        margin: -40px auto 0;

        img {
          width: 395px;
          height: auto;
        }
      }

      .form-line {
        width: 100%;
        height: auto;
        margin-top: 60px;

        .form-item {
          width: 100%;

          & + .form-item {
            margin-top: 40px;
          }

          .name {
            font-size: 14px;
          }

          .control {
            width: 100%;
            position: relative;

            .iconfont {
              position: absolute;
              right: 0;
              top: 50%;
              transform: translateY(-50%);
              cursor: pointer;
            }

            input {
              width: 100%;
              height: 44px;
              background: transparent;
              border: none;
              border-bottom: 1px solid #FFFFFF;
              color: #FFFFFF;

              &:focus {
                border-bottom-color: #30B2FF;
              }
            }
          }
        }
      }

      .btn-login {
        width: 100%;
        height: 50px;
      }
    }
  }
}

.test {
  img {
    width: 100%;
    height: auto;
  }
}

.test-list {
  font-size: 14px;
  text-align: center;
}